package com.shop.om.base;

import com.shop.om.model.sysUser.SysUserEntity;
import com.shop.om.utils.ShiroUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * @author cjt
 * @version 1.0.0
 * @description
 * @date 2020/7/14  15:27
 * @Version v1.0
 **/
@Slf4j
public abstract class BaseRest {
    protected SysUserEntity getUser() {
        return ShiroUtils.getUserEntity();
    }


    protected Long getUserId() {
        return getUser().getUserId();
    }

    protected Long getDeptId() {
        return getUser().getDeptId();
    }
}
